'use strict';

const path = require('path');
const root = path.join(__dirname, '..');
const source = path.join(root, 'test', '**', '*.js');

/**
 * Run unit tests
 *
 * @method unitTest
 */
function unitTest(gulp, plugins) {
  gulp.src(source)
    .pipe(plugins.plumber())
    .pipe(plugins.ava());
}

module.exports = unitTest;
